﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace blackhouse.BlackApart.Business.Prices {
    internal abstract class PriceProfileModification {

        #region Fields

        public PriceProfileModificationType ModificationType { get; private set; }
        public double ModificationValue { get; private set; }

        #endregion

        #region Constructors

        public PriceProfileModification(PriceProfileModificationType modType, double modValue) {
            this.ModificationType = modType;
            this.ModificationValue = modValue;
        }

        #endregion

        #region Methods

        public abstract bool IsApply(DateTime reservationFrom, DateTime reservationTo, int numberOfPeoples);

        #endregion

    }

    public enum PriceProfileModificationType {
        Percent,
        Value
    }
}
